import openpyxl
# 引入invite2模块
import invite2
excel_file = openpyxl.load_workbook("names.xlsx")
worksheet = excel_file.active
for index, row in enumerate(worksheet.rows):
    if index > 0:
        name = row[0].value
        # 调用invite函数生成邀请函
        invite2.invite(name)
